# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxi
pkgver=1.8
pkgrel=0
pkgdesc="X11 Input extension library"
url="https://www.x.org"
arch="all"
license="MIT AND X11"
options="!check"  # No test suite.
subpackages="$pkgname-dev $pkgname-doc"
makedepends="
	xorgproto
	libx11-dev
	libxext-dev
	libxfixes-dev
	util-macros
	xmlto
	"
source="https://www.x.org/releases/individual/lib/libXi-$pkgver.tar.bz2"

builddir="$srcdir"/libXi-$pkgver
build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--with-xmlto \
		--without-fop \
		--disable-static
	make
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

sha512sums="
4b2c667a8466eb389f253d77285c3f506c4a2b6c75054c722974a864565d565cc0c5701f8ea773eb929ceb94adfeb737ecd7a0bfc2c240157416a5f343c07aba  libXi-1.8.tar.bz2
"
